namespace Forging2
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class run_data_main
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public run_data_main()
        {
            run_data_detail = new HashSet<run_data_detail>();
        }

        [Key]
        [Column(TypeName = "numeric")]
        public decimal GET_ID { get; set; }

        [Required]
        [StringLength(50)]
        public string EQUIPMENT_GID { get; set; }

        [StringLength(50)]
        public string FORGING_NO { get; set; }

        [Column(TypeName = "datetime2")]
        public DateTime? START_DATE { get; set; }

        [Column(TypeName = "datetime2")]
        public DateTime? END_DATE { get; set; }

        public decimal? DATA_START_NO { get; set; }

        public decimal? DATA_END_NO { get; set; }

        public virtual bas_equipment_zy bas_equipment_zy { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<run_data_detail> run_data_detail { get; set; }
    }
}
